/*
 * SearchActionGroup.cpp
 *
 *  Created on: 15/lug/2014
 *      Author: va2013
 */

#include "SearchActionGroup.h"

SearchActionGroup::SearchActionGroup(ArRobot* robot, int direction, int rotVel) :
		ArActionGroup(robot) {
	rotate = new SearchAction(robot,direction,rotVel,6);
	addAction(rotate, 100);

}

SearchActionGroup::~SearchActionGroup() {
	delete rotate;
}

void SearchActionGroup::restart(int direction) {
	rotate->restart(direction);
}
